package com.kb.spring.jpa.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kb.spring.jpa.dao.PersonJpaRepository;
import com.kb.spring.jpa.entities.Person;

@Service
public class PersonJpaRepositoryService {
	@Autowired
	private PersonJpaRepository personJpaRepository;
	
	public Integer personJpaRepositoryFindAll(){
		List<Person> findAll = personJpaRepository.findAll();
		return findAll.size();
	}
}
